/*
Evento onDomReady prototype
*/

Event.onDOMReady(function(){  
	//alert('DOM is loaded!'); 
	validar(this.document);
	$('OBRUT_persona').focus();
});

function habilitaCampo(valor)
{
	if (valor == 1)
	{
	//document.getElement.address2.disabled=false;
		$('OBRUT_persona').disabled = false;
	} else {
		$('OBRUT_persona').disabled = true;	
	}
	/*
	if($('OBRUT_persona').disabled = true;)
	{
		
		$('OBRUT_persona').disabled = false;	
	}*/
}

/*
UI.Window.addMethods({
  focused: function() {
    // ... your iconifying code here ...
    this.fire('focused');
    // chain friendly
    return this;
  }
});

document.observe('window:focused', function(event) {
  alert("Window with id " + event.memo.window.id + " has just been iconified");
});

Event.observe(window, 'focused',
	function() { $('OBRUT_persona').focus() }
);

Event.observe(window, 'focused', function() {$('OBRUT_persona').focus()}, false);
*/